//
//  TheVillageViewVM.m
//  community
//
//  Created by 小崔 on 2020/5/29.
//  Copyright © 2020 小崔. All rights reserved.
//

#import "TheVillageViewVM.h"

@implementation TheVillageViewVM

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.theVillageModel = [TheVillageModel new];
        self.imageArray = [[NSMutableArray alloc]init];
    }
    return self;
}

-(void)exchange{
    @weakify(self);
    [self.theVillageModel getNetWorkImageUrl:^(NSArray * _Nonnull arr) {
        if (arr.count > 0) {
            [self.imageArray addObjectsFromArray:arr];
            self.iconImageUpdata = YES;
        }else{
            self.iconImageUpdata = NO;
        }
    }];
}
@end

